README.txt

This replication archive contains all necessary files to replicate the results in "Affective polarization is uniformly distributed across American states."

The folder structure and file descriptions in this archive are as follows:
- README.txt: this file
- 00_master.R: master code file, will run all code required for replication. Loads data required for all other Code files.
- Code
	- figure_1.R: generates figure 1 and accompanying descriptices
	- figure_2.R: generates figure 2
	- figure_3.R: generates figure 3
	- figure_s1-2.R: generates figures S1 and S2
	- figure_s3.R: generates figure S3
	- figure_s4.R: generates figure S4
	- funcs_facet_wrap_equal.R: helper function for plotting convenience
	- funcs_theme.R: helper function for plotting theme
	- table_1.R: generates table 1
- Data
	- survey_data.rds: main survey data used in analysis
	- var_data.csv: metadata for variables called during figure 2 creation
	- geo_info
		- county_info.rds: country-level demographic data
		- state_info.rds: state-level demographic data
		- zip_info.rds: zipcode-level demographic data
- Output
	- rf_output.rds: Random forest output from main manuscript
	- rf_output_cat.rds: Random forest output from SI
- Plots: empty receptacle for plots generated from Code